@extends('admin.layout.basic')
@section('content')
        <!-- 面包屑 -->
@include('admin.layout.breadcrumb')
<div class="wrapper wrapper-content animated fadeInRight ecommerce">

  <div class="row">
    <div class="form-group">
      <div class="col-sm-8 col-sm-offset-2">
        <div id="com_message"  name="com_message"  class="text-danger text-center" ></div>
      </div>
    </div>
    <div class="col-lg-12">

        <div class="tab-content" id="post_content_div">

              <fieldset class="form-horizontal">

                @foreach($siteitems as $sitem)
                  <div class="form-group sitemapitem" id="{{$sitem->name}}"><label class="col-sm-2 control-label">{{$sitem->title}}</label>
                    <div class="col-sm-5">
                      <div class="input-group m-b"><span class="input-group-addon">Frequency:</span>
                        {{--{{$frequency}}--}}
                        <select type="text"  name="frenquency"  class="form-control">
                          @foreach($frequency as $item)
                            <option value="{{$item}}" @if(isset($sitem->frenquency ) && $sitem->frenquency  ==$item ) selected @endif>{{$item}}</option>
                          @endforeach
                        </select>
                      </div>
                    </div>


                    <div class="col-sm-5">
                      <div class="input-group m-b"><span class="input-group-addon">Priority:</span>
                        <select type="text"  name="priorite"  class="form-control">
                          @foreach($priorities as $pro)
                            <option value="{{$pro}}"  @if(isset($sitem->priorite) && $sitem->priorite==$pro ) selected @endif>{{$pro}}</option>
                          @endforeach
                        </select>
                      </div>
                    </div>
                  </div>

                @endforeach

            </fieldset>


      </div>

    </div>
    <div class="col-lg-12 " style="padding-bottom: 40px">
      <div class="col-lg-12   text-center">

        <button type="button" onclick="sitemapManger.save()" class="btn btn-w-m btn-success">{{ trans('admin/message.submit') }}</button>
      </div>

    </div>


  </div>

</div>

@endsection


